package cn.appsys.pojo;

/**
 * 邮件工具类
 * Created by Super Cui on 2017/10/16.
 */
public class EmailMessage {
    private String senderEmail;
    private String receiverEmail;
    private String senderName;
    private String receiverName;
    private String title;
    private String emailCode;

    /**
     * constructor
     */
    public EmailMessage() {
    }

    public EmailMessage(String receiverEmail, String receiverName, String emailCode) {
        this.senderEmail = "hotcoffeefromchina@163.com";
        this.receiverEmail = receiverEmail;
        this.senderName = "HotCoffee社区";
        this.receiverName = receiverName;
        this.title = "app管理系统验证码";
        this.emailCode = emailCode;
    }

    /**
     * constructor
     * @param senderEmail
     * @param receiverEmail
     * @param senderName
     * @param receiverName
     * @param title
     * @param emailCode
     */
    public EmailMessage(String senderEmail, String receiverEmail, String senderName, String receiverName, String title, String emailCode) {
        this.senderEmail = senderEmail;
        this.receiverEmail = receiverEmail;
        this.senderName = senderName;
        this.receiverName = receiverName;
        this.title = title;
        this.emailCode = emailCode;
    }

    @Override
    public String toString() {
        return "EmailMessage{" +
                "senderEmail='" + senderEmail + '\'' +
                ", receiverEmail='" + receiverEmail + '\'' +
                ", senderName='" + senderName + '\'' +
                ", receiverName='" + receiverName + '\'' +
                ", title='" + title + '\'' +
                ", emailCode='" + emailCode + '\'' +
                '}';
    }

    public String getSenderEmail() {
        return senderEmail;
    }

    public void setSenderEmail(String senderEmail) {
        this.senderEmail = senderEmail;
    }

    public String getReceiverEmail() {
        return receiverEmail;
    }

    public void setReceiverEmail(String receiverEmail) {
        this.receiverEmail = receiverEmail;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getEmailCode() {
        return emailCode;
    }

    public void setEmailCode(String emailCode) {
        this.emailCode = emailCode;
    }
}
